<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<script src='jquery源码分析.js'></script>
	<script>
		// 127行，$.parseHTML默认的第三个参数是false
	$(function(){
		var str = "<li>1</li><li>2</li><li>3</li>";
		var arr = $.parseHTML(str,document,true); 
		$.each(arr,function(i){
			$('ul').append(arr[i]);
		});
	});

	$(function(){
		var str = "<li>1</li><li>2</li><li>3</li><script>alert(1)<\/script>";
		var arr = $.parseHTML(str,document); 
		$.each(arr,function(i){
			$('ul').append(arr[i]);
		});
	});

	$(function(){
		var str = "<li>1</li><li>2</li><li>3</li><script>alert(1)<\/script>";//可以弹1，因为有true
		var arr = $.parseHTML(str,document,true); 
		$.each(arr,function(i){
			$('ul').append(arr[i]);
		});
	});
	</script>
</head>
<body>
	<ul></ul>
</body>
</html>